package com.qf.mapper;

import com.qf.entity.Meeting;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public interface MeetMapper extends Mapper<Meeting> {

    @Select("select * from meeting where meet_id = #{id}")
    Meeting selectById(@Param("id") Integer id);

    @Select("select meet_id from meeting ")
    HashSet<Integer> findAllId();

    //根据ids
    List<Meeting> selectByIds(@Param("ids") String[] ids);

//    @Update("update meeting set meet_id = #{meeting.meetId},meet_name = #{meeting.meetName},meet_desc = #{meeting.meetDesc}")
//    Integer updateByMeet(com.qf.entity.Meeting meeting);
}
